/**
 * @(#)Carrello.java
 *
 *
 * @author Mauro Celani
 * @version 1.00 2013/9/15
 */


public class Carrello extends Container{

    public Carrello() {
    	super();
    }
    
    public void deleteAll(){
    	super.prodotti.clear();
    }
    
    public int getSize(){
    	return super.prodotti.size();
    }
    
    public float getImponibile(){
    	float r = 0.f;
    	for(int i = 0; i < super.prodotti.size(); i++)
    		r += super.prodotti.get(i).getPrezzo();
    	return r;
    }
    
    public String toString(){
    	return "\nCARRELLO:\n" + super.toString();
    }
    
}